package com.permissionmanager.service;

import com.permissionmanager.entity.Page;
import com.permissionmanager.entity.Perm;
import com.permissionmanager.entity.Role;

import java.util.List;

/**
 * role业务层接口
 *
 */
public interface RoleService {

    List<Role> findRole(Integer id,String role);
    void add(Role role);

    void update(Role role);

    void del(Integer id);

    Page<Role> findPage(Integer pageNum, Integer pageSize, String roleName);

    void allot(Integer permRoleId, List<Integer> permIdList);
}
